TARGET=demo
OBJS=main.o
CC=${CROSS_COMPILE}gcc
CFLAGS = -fPIC
LDFLAGS =

.PHONY: ${TARGET} clean libhack

${TARGET}: ${OBJS}
	${CC} -o $@ $^ ${LDFLAGS}

libhack:hack.o
	${CC} -shared -o hack.so $^
clean:
	rm -rf ${OBJS} ${TARGET} hack.so hack.o
